package com.sneakxy.mybase4j.generator.jdbc;

/**
 * Oracle方言
 * @author 潜行的青衣
 * @see
 */
public class OracleDialect implements Dialect {

	/* (non-Javadoc)
	 * @see com.sneakxy.mybase4j.generator.jdbc.Dialect#setUrl(java.lang.String)
	 */
	@Override
	public void setUrl(String url) {}

	/* (non-Javadoc)
	 * @see com.sneakxy.mybase4j.generator.jdbc.Dialect#getTablesSql()
	 */
	@Override
	public String getTablesSql() {
		return "select table_name from all_tables";
	}

	/* (non-Javadoc)
	 * @see com.sneakxy.mybase4j.generator.jdbc.Dialect#getSelectNone(java.lang.String)
	 */
	@Override
	public String getSelectNone(String table) {
		return "select * from " + table + " where 1!=1";
	}

	/* (non-Javadoc)
	 * @see com.sneakxy.mybase4j.generator.jdbc.Dialect#getCatalog()
	 */
	@Override
	public String getCatalog() {
		return null;
	}

	/* (non-Javadoc)
	 * @see com.sneakxy.mybase4j.generator.jdbc.Dialect#getSchema()
	 */
	@Override
	public String getSchema() {
		return null;
	}

}
